package actions;

import java.awt.event.ActionEvent;

import client_gui.ClientWindow;
import client_gui.UserDetailsDialog;

/**
 * Klasa predstavlja akciju koja prikazuje detalje o logovanom korisniku.
 * 
 * @author UrosKrkic & Radivoje Popovic
 */
public class MyDetailsAction extends RLMAbstractAction {

	public MyDetailsAction(ClientWindow owner) {
		setActionOwner(owner);
//		putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_F7, 0));
		putValue(SMALL_ICON, loadIcon("images/my_details.png"));
		putValue(NAME, "My Details");
		putValue(SHORT_DESCRIPTION, "Moji podaci");
	}
	
	
	public void actionPerformed(ActionEvent e) {
		UserDetailsDialog detailsDialog = new UserDetailsDialog(getActionOwner(), getActionOwner().getApplicaton().getClientUser());
		detailsDialog.setVisible(true);
	}
}
